<template>
  <div>登录页面 - <button @click="fn">btn</button></div>
</template>

<script>
export default {
  methods: {
    fn() {
      // const role = 1;
      this.$router.addRoute({
        path: "/about",
        component: () => import("../about/Index.vue"),
      });
      this.$router.push("/about");
    },
  },
};
</script>
